import request from "../request";
/**
 *  购物车列表
 * @returns
 */
function cartList(data) {
  return request({
    url: "cart/cartList",
    data,
  });
}

/**
 * 删除商品
 * @param {*} data 
 * @returns 
 */
function deleteAction(data){
  return request({
    url:'/cart/deleteAction',
    data,
  });
}

/**
 * 提交订单
 * @param {*} data
 * @returns
 */
function submitAction(data) {
  return request({
    method: "post",
    url: "order/submitAction",
    data,
  });
}

export { cartList, submitAction, deleteAction };
